from django.core.files.storage import Storage
class MyStorage(Storage):
    pass
    #存储类必须实现_open()和_save()
    def _open(self,name,mode='rb'):
        pass
    def _save(self,name,content,max_length=None):
        pass

    #模板中主要调用存储类url方法
    def url(self, name):
        return 'http://image.meiduo.site:8888/' + name
        return 'http://192.168.52.200:8888/' + name



